package com.sright.bcard.mini.web.context;

import org.springframework.stereotype.Component;




@Component
public class UserContext implements ContextWare {

    private ServletProxy servletProxy;

    public Long getUserId() {
        return servletProxy.getUserId();
    }

    public Long getMemberId() {
        return servletProxy.getMemberId();
    }

    public Long getEnterpriseId() {
        return servletProxy.getEnterpriseId();
    }

    public Integer getIsAuthorize() {
        return servletProxy.getIsAuthorize();

    }

    @Override
    public void setContext(ServletProxy servletProxy) {
        this.servletProxy = servletProxy;
    }

}
